package com.example.midushop.mapper.product.attr;

import com.example.midushop.entity.product.attr.AttrValue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * SKU商品规格参数值映射接口
 */
@Mapper
public interface AttrValueMapper {
    /**
     * SKU商品规格参数值绑定
     * @param pro_sku_attr_id SKU属性ID
     * @param pro_spu_attr_id SPU规格ID
     * @return 返回受影响行数
     */
    int addAttrValue(@Param("pro_sku_attr_id")long pro_sku_attr_id,@Param("pro_spu_attr_id")long pro_spu_attr_id);

    List<AttrValue> getAttrValue(@Param("pro_sku_attr_id") long pro_sku_attr_id,@Param("pro_spu_attr_id")long pro_spu_attr_id);
}
